

      <!-- Begin page content -->
		<div class="container"></div>
        <div class="container main">
			<!--<div class="form-signin">-->
				
			<h3>Register Account</h3>
			
			<?php
			if ($use_username) {
				$username = array(
					'name'	=> 'username',
					'id'	=> 'username',
					'value' => set_value('username'),
					'maxlength'	=> $this->config->item('username_max_length', 'tank_auth'),
					'size'	=> 30,
					'class' => 'input-block-level',
				);
			}
			$email = array(
				'name'	=> 'email',
				'id'	=> 'email',
				'value'	=> set_value('email'),
				'maxlength'	=> 80,
				'size'	=> 30,
				'class' => 'input-block-level',
			);
			$password = array(
				'name'	=> 'password',
				'id'	=> 'password',
				'value' => set_value('password'),
				'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
				'size'	=> 30,				
				'class' => 'input-block-level',
			);
			$confirm_password = array(
				'name'	=> 'confirm_password',
				'id'	=> 'confirm_password',
				'value' => set_value('confirm_password'),
				'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
				'size'	=> 30,
				'class' => 'input-block-level',
			);
			$captcha = array(
				'name'	=> 'captcha',
				'id'	=> 'captcha',
				'maxlength'	=> 8,
			);
			?>
			
			<?php echo form_open($this->uri->uri_string(), 'class="form-horizontal"','id="signup-form"'); ?>			
				<div class="control-group">
					<?php if ($use_username) { ?>
                
                        <?php echo form_label('Username <span style="color: red;">*</span>', $username['id']); ?>
                        <div class="controls">
							<?php echo form_input($username); ?>
                            <?php echo form_error($username['name']); ?>
                            
                            <?php echo isset($errors[$username['name']])? '<span style="color:#E91510">'.$errors[$username['name']].'</span>' : '' ; ?>
                        </div>
                </div>
                            
                        
                    <?php } ?>				
                 
				<div class="control-group">   
                    <?php echo form_label('Email Address <span style="color: red;">*</span>', $email['id']); ?>
                    <div class="controls">
						<?php echo form_input($email); ?>
                        <?php echo form_error($email['name']); ?>
                        <?php echo isset($errors[$email['name']])? '<span style="color:#E91510">'.$errors[$email['name']].'</span>' : ''; ?>
                   	</div>
               	</div>
                  
				<div class="control-group">      
                    <?php echo form_label('Password <span style="color: red;">*</span>', $password['id']); ?>
                    <div class="controls">
                    	<?php echo form_password($password); ?>
                    	<?php echo form_error($password['name']); ?>
                    </div>
                </div>	
                     
				<div class="control-group">        
                    <?php echo form_label('Confirm Password <span style="color: red;">*</span>', $confirm_password['id']); ?>
                    <div class="controls">
                    	<?php echo form_password($confirm_password); ?>
                    	<?php echo form_error($confirm_password['name']); ?>
                    </div>
                </div>	
    
                    <?php if ($captcha_registration) {
                        if ($use_recaptcha) { ?>
                    
                            <div id="recaptcha_image"></div>
                        
                            <a href="javascript:Recaptcha.reload()">Get another CAPTCHA</a>
                            <div class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type('audio')">Get an audio CAPTCHA</a></div>
                            <div class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type('image')">Get an image CAPTCHA</a></div>
                        
                            <div class="recaptcha_only_if_image">Enter the words above</div>
                            <div class="recaptcha_only_if_audio">Enter the numbers you hear</div>
                        
                            <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
                            <span style="color: red; margin:5px 0; display:block;">
                                <?php echo form_error('recaptcha_response_field'); ?>
                            </span>
                        
                        <?php echo $recaptcha_html; ?>
                    
                    <?php } else { ?>
                    
                            <p>Enter the code exactly as it appears:</p>
                            <?php echo $captcha_html; ?>
                        
                            <?php echo form_label('Confirmation Code', $captcha['id']); ?>
                            <?php echo form_input($captcha); ?>
                            <?php echo form_error($captcha['name']); ?>
                            <hr>
                    <?php }
                    } ?>
                <div class="form-actions">
                    <?php echo form_submit('register', 'Add User', 'class="btn btn-primary" type="submit"'); ?>
                    <input class="btn" id="cancel" type="button" name="cancel" value="Cancel" onclick="self.history.back()" />
                </div>
                
                <!--<span style="float:right"> 
                    <i class="icon-arrow-left"></i> <?php echo anchor('/auth/login/', 'Back to Login'); ?>
                </span>-->
			
			<?php echo form_close(); ?>
			</div>
		<!--</div>-->

		<div id="push"></div>
	</div>

    

